principal andrew barr was caught viewing porn at work .
a student took a photo of him watching pornography in his office .
an investigation was launched after the photo was shared on snapchat .
the geelong college principal has now resigned .
the college council called his actions ` a breach of our standards '